package SudokuViews;

import java.io.IOException;

import com.example.sv2.R;

import android.R.string;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.Log;
import android.view.MotionEvent;
import Core.AGEngine;
import Core.AGView;
import Core.CommonUtil.ZipStrUtil;

public class ZipStrTestView extends AGView{
	public ZipStrTestView(AGEngine engine) {
		super(engine);
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public void onUpdate(AGEngine engine) {
		// TODO Auto-generated method stub
		
		
	}

	@Override
	public void onRender(AGEngine engine) {
		// TODO Auto-generated method stub
        Paint mPaint = new Paint();
    	Bitmap imgStartLabel = engine.resource.getImage(R.drawable.start);
       
        //mPaint.setColor(Color.WHITE); 
		//engine.graphics.drawText("Press screen start", 10.0f, 200.0f, mPaint);

		RectF destRect2 = new RectF(0,0, 480, 840);
		
		String s;
		try {
			s = ZipStrUtil.compress("dsaaaaaaaaaaaaaaaaaaarehgrehgiegrhghrewjgkndfngkfdnsbgjfbhgbjgrjnbjkrnbjknbjknbjknrkjbnkdnbjknsbjkfnksdnjkdnbjnkjtnrkjnjtkr");
			engine.graphics.drawText(s, 100, 100, mPaint);
			
			
			String es=ZipStrUtil.unCompress(s);
			engine.graphics.drawText(es, 100, 300, mPaint);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
	}
}
